<?php
class User_Model
{
	public $id;
	public function get_Users(){
		$users = array();
		// Connect MySQL
		$conn = mysql_connect("localhost","root","root");
		mysql_select_db("mstore");
		$sqlquery = "SELECT * FROM user";
		$result = mysql_query($sqlquery);
		$index = 1;
		while ($row = mysql_fetch_row($result))
		{
			$users[$index++] = $row;
		}
		return $users;
	}
}
?>